package com.xiaohe66.web.application.task.bo;

import com.xiaohe66.common.validator.annotation.Max;
import com.xiaohe66.common.validator.annotation.Min;
import lombok.Data;

import java.time.LocalDate;
import java.util.Set;

/**
 * @author xiaohe
 * @since 2021.11.17 14:44
 */
@Data
public class TaskSaveBo {

    @Min(value = 1, allowNull = true)
    private Long id;

    @Min(0)
    @Max(6)
    private Integer poolId;

    /**
     * 最多 20个中文字符
     */
    @Max(120)
    private String name;

    /**
     * 最多 100个中文字条
     */
    @Max(600)
    private String remark;

    private LocalDate changeTime;

    @Min(value = 0, allowNull = true)
    private Integer sort;

    private Set<Long> tagIds;
}
